package com.mxf.code.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : [mxf]
 * @version : [v1.0]
 * @className : HelloController
 * @description : [描述说明该类的功能]
 * @createTime : [2022/9/2 16:53]
 * @updateUser : [mxf]
 * @updateTime : [2022/9/2 16:53]
 * @updateRemark : [描述说明本次修改内容]
 */
@RestController
@RequestMapping(value = "/user")
@Slf4j
public class HelloController {


    @GetMapping("/hello")
    @PreAuthorize("hasAuthority('system:dept:list')")
    public String getHello() {
        return "hellow";
    }
}
